extends Area2D


func _ready() -> void:
	body_entered.connect(on_body_entered)
	

func on_body_entered(_body:Player) -> void:
	SaveManager.save_game()
	Global.player.is_dead = false
	Global.player.current_energy = Global.player.max_energy
	Global.player.set_paused(false)
	queue_free()
